package net.zjitc.yaobei_backed.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 学习统计信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudyStats {
    /**
     * 用户剩余需要学习词书中的总单词数
     * 计算：user_progress.total_words - user_progress.learned_words
     */
    private Integer remainingWordsToLearn;

    /**
     * 用户今天需要复习的单词数
     * 计算：COUNT(*) FROM study_record WHERE user_id=? AND DATE(next_review_at)=CURDATE()
     */
    private Integer todayReviewCount;
}

